//
//  MBLaneView.h
//  iNaviCore
//
//  Created by fanyunlong on 2017/3/15.
//  Copyright © 2017年 Mapbar. All rights reserved.
//

#import <GLKit/GLKit.h>
#import "MBNaviCoreBase.h"

typedef enum MBLanePainterEvent
{
    MBLanePainterEvent_show = 0,
    MBLanePainterEvent_hide
} MBLanePainterEvent;

typedef enum MBAlignment
{
    MBAlignment_topLeft,
    MBAlignment_topCenter,
    MBAlignment_topRight,
    MBAlignment_middleLeft,
    MBAlignment_middleCenter,
    MBAlignment_middleRight,
    MBAlignment_bottomLeft,
    MBAlignment_bottomCenter,
    MBAlignment_bottomRight
}MBAlignment;

typedef void (^MBLanePainterBlock)(MBLanePainterEvent event);

@interface MBLaneView : GLKView

-(instancetype)initWithFrame:(CGRect)rect;
-(void)setFrame:(CGRect)frame;
/**
    设置车道线显示事件回调
 */
@property (nonatomic, copy) MBLanePainterBlock block;
@property (nonatomic, assign) BOOL enable;
@property (nonatomic, assign) MBAlignment alignment;
@end
